package org.example.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import org.example.pojo.UmsUser;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author wy
 * @since 2023-10-04
 */
public interface IUmsUserService extends IService<UmsUser> {

    String token(UmsUser user) throws JsonProcessingException;
    Object list(UmsUser umsUser);
    boolean add(UmsUser umsUser);
    boolean batchdel(Integer[] ids);
    boolean logout(HttpServletRequest request);
    UmsUser getByPhone(String phone);
    String mail(UmsUser umsUser) throws JsonProcessingException;
}
